<template>
	<!-- 考试结果 -->
	<view class="res-content">
		<view class="result-box">
			<view class="result-head">
				<image src="../../../static/index/椭圆 2 拷贝 2.png" mode=""></image>
				<view class="grade-box">
					<view>96<text>分</text></view>
					<view>恭喜你通过此次模拟考试</view>
				</view>
			</view>
			<view class="btn">
				<u-button shape="circle" :custom-style="customStyle">查看答题详情</u-button>
				<u-button shape="circle" :custom-style="customStyle1" type="success" @click='uni.navigateBack()'>返回模拟考试</u-button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				customStyle: {
					border: '1rpx solid #2AC092',
					color: '#2AC092'
				},
				customStyle1: {
					background: '#2AC092',
					color:"#fff"
				}
			}
		}
	}
</script>

<style lang="scss">
	.result-box {
		width: 95%;
		margin: 20rpx auto;
		padding-bottom: 20rpx;
		border-radius: 10rpx;
		background-color: #fff;

		.result-head {
			position: relative;

			>image {
				width: 100%;
				height: 420rpx;
			}

			.grade-box {
				position: absolute;
				width: 100%;
				height: 100%;
				top: 0;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;

				>view:nth-child(1) {
					width: 256rpx;
					height: 256rpx;
					background: #fff;
					border-radius: 50%;
					display: flex;
					align-items: center;
					justify-content: center;
					color: #2AC092;
					font-size: 96rpx;
					font-weight: bold;

					>text {
						font-size: 48rpx;
						font-weight: normal;
						margin-top: 15rpx;
						margin-left: 4rpx;
					}
				}

				>view:nth-child(2) {
					font-size: 42rpx;
					color: #fff;
					margin-top: 20rpx;
				}
			}
		}
	}
	.btn{
		display: flex;
		justify-content: space-around;
		margin-top: 20rpx;
	}
</style>